package com.example.sharding.demo.service;

import com.example.sharding.demo.model.BaseEntity;
import com.example.sharding.demo.model.table.User;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {


    int insertUser(BaseEntity<User> record);

    User findUser(BaseEntity<User> record);

    int updateUser(BaseEntity<User> record);

    int updateUserName(String name, Integer id);

    int countUserByName(String name);

    List<User> findUserList(BaseEntity<User> record);

    PageInfo<User> findUserPage(BaseEntity<User> record, Page<User> page);

}
